<template>

    <div v-for="v in lists" :key="v">
        <Diyinput v-if="v.type==0" :shuju="v"></Diyinput>
        <Diytextarea v-if="v.type==1" :shuju="v"></Diytextarea>
        <diyimg v-if="v.type==4" :shuju="v"></diyimg>
        <diyyanse v-if="v.type==5" :shuju="v"></diyyanse>
        <diykaiguan v-if="v.type==2" :shuju="v"></diykaiguan>
    </div>
    

</template>

<script>
import Diyinput from '../components/Diyinput.vue'
import Diyimg from '../components/Diyimg.vue'
import Diyyanse from '../components/Diyyanse.vue'
import Diytextarea from '../components/Diytextarea.vue'
import Diykaiguan from '../components/Diykaiguan.vue'
import {request} from '../api/request.js'
export default {
  components: { Diyinput,Diytextarea,Diyimg,Diyyanse, Diykaiguan },
  data(){
      return {
          lists:[],
          s:{
              names:'',zhi:'',keys:''
          }
      }
  },
    mounted(){
        this.jiazai()
    },
    methods:{
        jiazai(){
            request('/g/xitong/get_xitong_list',{sid:3,token:window.sessionStorage.getItem('token')},res=>{
                this.lists=res.data;
                console.log(res.data)
            },err=>{})
        }
    }

}
</script>

<style scoped>
.el-form-item{margin-bottom: 11px; margin-top: 11px;}
</style>